package com.yjd.comm.settlement.service;

import com.yjd.comm.base.service.IBaseService;
import com.yjd.comm.settlement.model.ClearDayMerchantModel;

/**
 * <b>description</b>：商户日结业务接口<br>
 * <b>time</b>：2017-08-11 17:28:17 <br>
 * <b>author</b>：  yangchangyan@yijiedai.com
 */
public interface IClearDayMerchantService extends IBaseService {
	/**
	 * 插入
	 * 
	 * @param model
	 * @return
	 * @throws Exception
	 */
	public ClearDayMerchantModel insert(ClearDayMerchantModel model) throws Exception;

	/**
	 * 更新,大于等于1表示成功，其他失败
	 * 
	 * @param model
	 * @return
	 * @throws Exception
	 */
	public int update(ClearDayMerchantModel model) throws Exception;

	/**
	 * 根据id删除,大于等于1表示成功，其他失败
	 * 
	 * @param id
	 * @return
	 * @throws Exception
	 */
	public int delete(long id) throws Exception;

	/**
	 * 商户结算
	 * @param org_id
	 * @param settlement_id
	 * @throws Exception
	 */
	public void settlement(Long org_id, Long settlement_id)throws Exception;

}
